package com.lyl.servicestatistics;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableFeignClients // 服务调用
@EnableDiscoveryClient // 服务发现
@ComponentScan(basePackages = "com.lyl")// 放大组件扫描包
@EnableTransactionManagement
@MapperScan(basePackages = {"com.lyl.servicestatistics.mapper"})
@EnableScheduling // 允许执行定时任务
public class StatisicsApplication {
    public static void main(String[] args) {
        SpringApplication.run(StatisicsApplication.class, args);
    }
}